-- GENERATED SPELL FOR [Ouro Scarab] --


function spell0_15718(pUnit, Event) --@Summon Player,n/a--
pUnit:FullCastSpellOnTarget(20477,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15718', 663, 1)
end

function Sorts_15718(pUnit, Event)
local choix_sorts_15718 = math.random(0, 0)
if choix_sorts_15718 == 0 then
pUnit:RegisterEvent('spell0_15718', 1, 1)
end
end

function mob15718_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15718', math.random(1500, 3000), 1)
end

function mob15718_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15718_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15718_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15718, 1, 'mob15718_Action')
RegisterUnitEvent(15718, 2, 'mob15718_Leave')
RegisterUnitEvent(15718, 3, 'mob15718_Kill')
RegisterUnitEvent(15718, 4, 'mob15718_Die')
